<?php

 require("include/top.php");
if (!empty($_SESSION['sharing']['id'])) {
 $categories= Category::getAllCategory();
 $tpl->assign ('categories',$categories);
 
 if (!empty($_POST)) 
	require(FORM_PATH."mask_brand.form.php");
 
	$tpl->display("header.tpl");
    $tpl->display("menu.tpl");
	$tpl->display("mask_brand.tpl");
	$tpl->display("footer.tpl");
}
else { header('Location:login.php');}

require("include/bottom.php");	
	?>